package kr.hyunist.androidcomplete01saeildamil.ch12;

import java.util.*;

import kr.hyunist.androidcomplete01saeildamil.*;
import android.app.*;
import android.os.*;
import android.widget.*;

public class ListOfViewEx extends Activity {
	ArrayList<ListItem> arItem;
		
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.listviewtest);
		
		arItem = new ArrayList<ListItem>();
		arItem.add(new ListItem(0, "제목", "입력내용","",0));
		arItem.add(new ListItem(1, "", "", "push",R.drawable.ic_launcher));
		arItem.add(new ListItem(0, "이름을 입력","니 이름","",0));
		arItem.add(new ListItem(0, "나이 입력","몇살?","",0));
		arItem.add(new ListItem(1, "", "", "눌러",R.drawable.ic_launcher));
		arItem.add(new ListItem(1, "", "", "업로드",R.drawable.ic_launcher));
		arItem.add(new ListItem(0, "주소","어디삼?","",0));
		
		MultiAdapter Adapter = new MultiAdapter(this, arItem);
		
		ListView list = (ListView) findViewById(R.id.listViewTestlist);
		list.setAdapter(Adapter);
		
	}
}
